<template>
  <div class="banner">
    <el-carousel arrow="never" style="height: 450px;">
      <el-carousel-item style="height: 450px;" v-for="item in banner" :key="item.id">
        <img :src="item.photo" alt />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  name: "Banner",
  data() {
    return {
      banner: [
        {
          id: 1,
          photo: require("../../assets/imgs/banner/1.png")
        },
        {
          id: 2,
          photo: require("../../assets/imgs/banner/2.png")
        },
        {
          id: 3,
          photo: require("../../assets/imgs/banner/3.png")
        },
        {
          id: 4,
          photo: require("../../assets/imgs/banner/4.png")
        },
        {
          id: 5,
          photo: require("../../assets/imgs/banner/5.png")
        },
        {
          id: 6,
          photo: require("../../assets/imgs/banner/6.png")
        }
      ],
    };

  },
};
</script>

<style scoped>
.banner {
  width: 1400px;
  margin: 20px auto;
  border: 1px solid rgb(253, 252, 252);
}
.banner img {
  width: 1400px;
  height: 450px;
}
</style>
